package org.acghub.config.type;

import org.acghub.config.Type;

import java.util.NavigableMap;
import java.util.TreeMap;

/**
 * @Desc
 * @Author miyuki4j
 * @Date 2025/7/24/星期四 14:31
 * @Version 1.0
 */
public class TreeMapType extends Type.MapType<NavigableMap<?, ?>> {

    @Override
    public String name() {
        return "treemap";
    }

    @Override
    public String javaInterface() {
        return "java.util.NavigableMap";
    }

    @Override
    public String javaImplementation() {
        return "java.util.TreeMap";
    }

    @Override
    protected NavigableMap<?, ?> newMap() {
        return new TreeMap<>();
    }
}
